package edu.gatech.cs2340.bytebankers.tests.UI;

import java.awt.Dimension;

import javax.swing.JFrame;

import edu.gatech.cs2340.bytebankers.model.Journey;
import edu.gatech.cs2340.bytebankers.model.Leader;
import edu.gatech.cs2340.bytebankers.model.Wagon;
import edu.gatech.cs2340.bytebankers.model.item.Food;
import edu.gatech.cs2340.bytebankers.model.item.ItemManager;
import edu.gatech.cs2340.bytebankers.model.profession.Banker;
import edu.gatech.cs2340.bytebankers.presenter.IRiverPresenter;
import edu.gatech.cs2340.bytebankers.presenter.RiverPresenter;
import edu.gatech.cs2340.bytebankers.view.IRiverView;
import edu.gatech.cs2340.bytebankers.view.RiverView;

public class RiverTestUI {
 public static void main(String[] args) {
		JFrame frame = new JFrame();
		Journey journey = new Journey();
		Wagon wagon = new Wagon();
		Leader leader = new Leader();
		Banker banker = new Banker();
		
		leader.setProfession(banker);
		journey.setLeader(leader);
		journey.setWagon(wagon);
		journey.setLastLocation(journey.getlastLocation().getNextLocation());
		
		ItemManager iManager = new ItemManager();
		
		journey.getWagon().addItemQuantity(iManager.getItemByType(Food.class), 50);
		
		IRiverPresenter presenter = new RiverPresenter(journey);
		IRiverView view = new RiverView(presenter);
		
		presenter.setView(view);
		
		frame.setPreferredSize(new Dimension(850, 550));
		frame.setTitle("UITest");
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		frame.getContentPane().add((RiverView) view);
		frame.pack();
		frame.setVisible(true);
		
 }
}
